xend: fix options for assigned pci
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 8 Jan 2010 11:39:06 +0000 (11:39 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 8 Jan 2010 11:39:06 +0000 (11:39 +0000)
commitdbaa1e36038b28d9dd8497dd7d03f263aa15bef4
treea49e0e8b8bfac2211eb568ba35cdfaf4affcd2a5
parent17fed54483fbeac4792adaac7c17983853052281
xend: fix options for assigned pci

pci global options and per-device options for HVM device model have
been broken for some time, the patch tries to fix the problem. It:
    * maintains global options in xend, and merge it into
      per-device option when creating the backend
    * merge the global options also into the parameter of pci-ins
      dm-command

The second one is there because the backend is effectively skipped
in ioemu at present, ioemu solely relies on the parameter string to
create the device.

Cc: Simon Horman <horms@verge.net.au>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Qing He <qing.he@intel.com>
tools/python/xen/util/pci.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/pciif.py